<template>
	<view :class="{'flex-flow':flexFlow}" class="chat-item">
		<view class="chat-head" @click="callFatherMethod()">
			<image :src="customData.avatar" mode="aspectFill"></image>
		</view>
		<view class="gift_box">
			<view class="gift_icon gift_iconMy">
				<image :src="customData.giftIcon?customData.giftIcon:' /static/img/icon_bbt.png'"
					mode="">
					</image>
			</view>
			<view class="gift_content">
				<view class="tit">
					您赠送礼物给对方
				</view>
				<view class="lit" style="color: #111;">
					价值￥{{customData.giftPrice}}
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		name: "chatSendGift",
		props:{
			flexFlow:{
				type:Boolean,
				default:true,
			},
			customData:{
				type:Object,
				default:{
					avatar:'',
					userId:0,
					giftIcon:null,
					giftPrice:0
				},
			}
		},
		data() {
			return {
				ossPath:'',
			};
		},
		created() {
			
		},
		mounted() {
			this.ossPath = this.$ossPath;
		},
		methods: {
			callFatherMethod(){
				this.$emit('callFatherMethod',this.customData.userId)
			}
		},
	};
</script>

<style lang="scss" scoped>

	
</style>